<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>用户资料</title>
</head>

<body>
    {% block content %}
        {% if user.is_authenticated %}
            <a href="{% url 'userManage:update_profile' %}">Update Profile</a>
            <a href="{% url 'account_email' %}">Manage Email</a>
            <a href="{% url 'account_change_password' %}">Change Password</a>
            <a href="{% url 'account_logout' %}">Logout</a>
        {% endif %}

        <p>Welcome, {{ user.username }}.</p>

        <h2>My Profile</h2>
        <ul>
              <li>用户头像: {{ user.profile.avatar }} </li>
            <li>用户昵称: {{ user.profile.nickname }} </li>
            <li>真实姓名: {{ user.profile.real_name }} </li>
            <li>用户性别: {{ user.profile.gender }} </li>
              <li>手机号码: {{ user.profile.phone }} </li>
            <li>公司名称: {{ user.profile.company }} </li>
            <li>所在部门: {{ user.profile.department }} </li>
        </ul>
    {% endblock %}
</body>

</html>
